<ion-view view-title="Meine Aufträge">
    <ion-content ng-controller="meineAuftraegeCtrl">
        <ion-refresher pulling-text="Pull to refresh..." on-refresh="refreshMeineAuftraegeAnzeigen()" refreshing-text="Fetching ..." pulling-icon="ion-arrow-down-c" refreshing-icon="ion-loading-a">
        </ion-refresher>
        <div class="row" id="headerMeineAuftraege">
            <div class="col col_heading col_narrow">Typ</div>
            <div class="col col_heading">Start</div>
            <div class="col col_heading">Ziel</div>
            <div class="col col_heading">Status</div>
        </div>
        <div id="rowsMeineAuftraege">
        </div>
    </ion-content>
</ion-view>
<ion-footer-bar align-title="left" class="bar-light">
    <button on-tap="openModal()" class="button button-clear icon ion-gear-a" type="submit" ng-controller="meineAuftraegeCtrl">Filtern</button>
</ion-footer-bar>
<script id="modalMeineAuftraege.html" type="text/ng-template">
    <div class="modal">
        <ion-header-bar>
            <a class="button icon-left ion-chevron-left button-clear button-dark" ng-click="modal.hide()">Back</a>
            <h1 class="title">Filter</h1>
        </ion-header-bar>
        <ion-content>
            <div class="list">
                <div class="item item-input item-select">
                    <div class="input-label">
                        Typ
                    </div>
                    <select>
                        <option selected>Alle</option>
                        <option>Auftraggeber</option>
                        <option>Auftragnehmer</option>
                    </select>
                </div>
                <div class="item item-input item-select">
                    <div class="input-label">
                        Auftragstatus
                    </div>
                    <select id="bba">
                        <option>Alle</option>
                        <option>Aufgegeben</option>
                        <option>Offen</option>
                        <option>Angenommen</option>
                        <option>Unterwegs</option>
                        <option>Abgeschlossen</option>
                        <option>Abgebrochen</option>
                    </select>
                </div>
            </div>
            <button class="button button-positive button-block" ng-click="filtern()">Filtern</button>
        </ion-content>
    </div>
</script>
